package com.google.code.jcn2000;
import se.sics.tac.aw.*;
class HotAC extends AllocationContainer{

  private int inAuction;
  private int quotePrice;

  public HotAC(JCN2000 creatorObject) {
    clear();
  }


  //this function is implemented in each of the allocationcontainers themselves
  public int getCost(int day){
    //If we already paid for it, it's going to cost zero.
    if (inventory[day] > 0 ){
      return 0;
    }
    if (inAuction > 0 ){
      predictPrice(day);
    }
    return 0;
  }

  /*Function to predict what the market is going to do. It tries two things: 
    1. it creates a regression function to see if the rise is linear
    2. if that doesn't work (-0.5 < correlation < 0.5), it creates a regression
       function based on the differences (ie. it tries to create a function to rpedict
       exponential rises
  */
  public void predictPrice(int day){
     //linear
    /* if ((lin.correlation > 0.5) || (lin.correlation < -0.5)) {
       
     }
     //if not linear, we try to use it as exponential, we cant deal with anything else
     else {}*/
  }
  //this function is implemented in each of the allocationcontainers themselves
  public int predictPriceAt(int time, int day){
    return 0;  
  }
  
  //this function is implemented in each of the allocationcontainers themselves
  public int predictTimeWhen(int time, int day){
    return 0;  
  }
}
